CPP=g++
CC=gcc
LIBS=-laes_dfa
CFLAGS=-O2 -Wall
INCLUDEPATH=-I. -I.. 
LDFLAGS=
#OUTPUT_DIR=out
OUTPUT_NAME=analysis
OBJECTS= analysis.o Initial.o InvertTable.o \
	MultiplyTable.o SimpleElementS.o
$(OUTPUT_NAME) : $(OBJECTS) $(OUTPUT_NAME_E)
	$(CPP) -o $(OUTPUT_NAME) $(LIBS) $(LDFLAGS) $(OBJECTS)
analysis.o : analysis.cpp Matrix.h
	$(CPP) -c $(CFLAGS) $(INCLUDEPATH) analysis.cpp
Initial.o : Initial.cpp
	$(CPP) -c $(CFLAGS) $(INCLUDEPATH) Initial.cpp
InvertTable.o : InvertTable.cpp
	$(CPP) -c $(CFLAGS) $(INCLUDEPATH) InvertTable.cpp
MultiplyTable.o : MultiplyTable.cpp
	$(CPP) -c $(CFLAGS) $(INCLUDEPATH) MultiplyTable.cpp
SimpleElementS.o : SimpleElementS.cpp
	$(CPP) -c $(CFLAGS) $(INCLUDEPATH) SimpleElementS.cpp
$(TEST_NAME) : $(OUTPUT_NAME) test_main.c
	$(CC) $(INCLUDEPATH) $(CFLAGS) -o $(TEST_NAME) $(OUTPUT_NAME) test_main.c
clean : 
	-rm $(OBJECTS) $(OUTPUT_NAME) 
